﻿@using System.Globalization
@using BookShop.DTO
@using BookShop.Library.Constant
@model List<Order>
@{
    ViewBag.Title = "Danh mục đơn hàng | Book Shop Ngân Hà";
}
<ul class="breadcrumb">
    <li><a href="@Url.Action("Index", "Home")">Trang chủ</a></li>
    <li><a href="@Url.Action("Index", "Account")">Trang tài khoản</a></li>
    <li class="active">Danh mục đơn hàng</li>
</ul>

<div class="row margin-bottom-40">
    @{
        Html.RenderPartial("_AccountSidebar");
    }
    @if (Session[SessionKey.Customer] != null)
    {
        <div class="col-md-9 col-sm-7">
            <h1>Danh mục đơn hàng</h1>
            <div class="content-page">
                <ul>
                    @if (Model != null)
                    {
                        foreach (var order in Model)
                        {
                        <li>
                            <a href="@Url.Action("OrderHistoryDetail", new { orderId = order.Id })">Mã đơn hàng: @order.Id - @order.CreateTime.ToString("d", CultureInfo.CreateSpecificCulture("vi-VN")) - @order.TotalPrice (Đ)</a>
                        </li>
                        }
                    }
                </ul>
            </div>
        </div>
    }
</div>

@section Javascript{
    <script src="~/Content/assets/global/plugins/carousel-owl-carousel/owl-carousel/owl.carousel.min.js" type="text/javascript"></script>
    <script src="~/Content/assets/global/plugins/fancybox/source/jquery.fancybox.pack.js" type="text/javascript"></script>
    <script src="~/Content/assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
}

@section Css{
    <link href="~/Content/assets/global/plugins/fancybox/source/jquery.fancybox.css" rel="stylesheet">
    <link href="~/Content/assets/global/plugins/carousel-owl-carousel/owl-carousel/owl.carousel.css" rel="stylesheet">
    <link href="~/Content/assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css">
}